//
//  ZAQTestViewController.swift
//  ZAQWBDZT
//
//  Created by 赵安庆 on 16/9/20.
//  Copyright © 2016年 zaq. All rights reserved.
//

import UIKit

class ZAQTestViewController: UIViewController {

    override func viewDidLoad() {
         super.viewDidLoad()
     view.backgroundColor = UIColor.magenta

        addNavRightButton()

    }
    private func addNavRightButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))

    }

    //  点击事件
    func pushAction() -> Void {
        let testVc = ZAQTestViewController()
        navigationController?.pushViewController(testVc, animated: true)


    }
        }
